package com.graduation.vaccine.vo;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;


@Getter
@ToString
@AllArgsConstructor
public enum  RespBeanEnum {
    //    通用
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务端异常"),

    //成功
    UPDATE_SUCCESS(2002001,"修改成功！"),
    //    登录
    LOGIN_ERROR(500210,"用户名或密码错误！"),
    LOGIN_ERROR_NOT_EXIST(500211,"不存在该用户"),
    PASSWORD_ERROR(500212,"密码不正确"),
    MOBILE_ERROR(500213,"手机号码格式不正确"),
    VERIFY_USER_ERROR(500214,"用户审核未通过"),
    STATUS_USER_ERROR(500215,"该用户已注销"),
    VERIFY_COMPANY_ERROR(500216,"所在组织未通过审核"),
    STATUS_COMPANY_ERROR(500217,"所在组织已注销"),
    NOT_JOIN_COMPANY(500218,"未加入任何组织"),
    //    异常
    BIN_ERROR(500218,"参数校验异常"),
    EMAIL_ERROR(500219,"验证码发送失败"),
    NO_OPERATION_PERMISSION(500200,"没有操作权限"),
    ILLEGAL_OPERATION(500201,"非法操作"),

    //注册
    REGISTER_ERROR(5003110,"注册失败"),
    DUPLICATEKEY_ERROR(5003111,"该手机号已被注册"),
    DUPLICATEKEY_IDCard_ERROR(5003115,"该身份证号已被注册"),
    IDENTIFYNUMBER_ERROR(5003112,"身份证号格式错误"),
    COMPANY_NOTFOUND(5003113,"部门不存在"),
    COMPANY_REPEAT(5003114,"部门已存在"),

    //更新
    UPDATE_ERROR(5004110,"更新失败"),
    INSERT_ERROR(5004120,"添加失败"),

    //图片
    EMPTY_IMG_DATA(5004001,"图片为空"),
    UPLOAD_IMG_ERROR(5004002,"图片上传失败"),

    //预约：
    NO_STOCK(2005001,"您手慢了一步"),
    UNREPETABLE_APPLY(2005002,"已预约该产品，不可重复预约"),
    FORBIDDEN_APPLY(2005003,"一天不可接种多个疫苗"),

    //web
    DUPLICATE_NAME(5006001,"名称重复"),

    //订单
    UPDATE_STATUS_ERROR(5007001,"不可更改为此状态"),
    ILLEGAL_DEPARTMENTCODE(5007002,"非法部门code，请确认是否输入全部departmentcode,或检查该code下是否有产品"),
    NO_DATA(5007003,"无数据");


    ;


    private final Integer code;
    private final String message;
}
